// license-header java merge-point
/**
 * This is only generated once! It will never be overwritten.
 * You can (and have to!) safely modify it by hand.
 */
package com.jrsystems.fleet.trip;
/**
 * @see com.jrsystems.fleet.trip.TripRequest
 */
public class TripRequestDaoImpl
    extends com.jrsystems.fleet.trip.TripRequestDaoBase
{
    /**
     * @see com.jrsystems.fleet.trip.TripRequestDao#toTripRequestVO(com.jrsystems.fleet.trip.TripRequest, com.jrsystems.fleet.trip.vo.TripRequestVO)
     */
    public void toTripRequestVO(
        com.jrsystems.fleet.trip.TripRequest source,
        com.jrsystems.fleet.trip.vo.TripRequestVO target)
    {
        // @todo verify behavior of toTripRequestVO
        super.toTripRequestVO(source, target);
        // WARNING! No conversion for target.vehicles (can't convert source.getVehicles():com.jrsystems.fleet.vehicle.Vehicle to com.jrsystems.fleet.vehicle.vo.VehicleVO[]
        // WARNING! No conversion for target.transportRequest (can't convert source.getTransportRequest():com.jrsystems.fleet.request.TransportRequest to com.jrsystems.fleet.request.vo.TransportRequestVO
    }


    /**
     * @see com.jrsystems.fleet.trip.TripRequestDao#toTripRequestVO(com.jrsystems.fleet.trip.TripRequest)
     */
    public com.jrsystems.fleet.trip.vo.TripRequestVO toTripRequestVO(final com.jrsystems.fleet.trip.TripRequest entity)
    {
        // @todo verify behavior of toTripRequestVO
        return super.toTripRequestVO(entity);
    }


    /**
     * Retrieves the entity object that is associated with the specified value object
     * from the object store. If no such entity object exists in the object store,
     * a new, blank entity is created
     */
    private com.jrsystems.fleet.trip.TripRequest loadTripRequestFromTripRequestVO(com.jrsystems.fleet.trip.vo.TripRequestVO tripRequestVO)
    {
        // @todo implement loadTripRequestFromTripRequestVO
        throw new java.lang.UnsupportedOperationException("com.jrsystems.fleet.trip.loadTripRequestFromTripRequestVO(com.jrsystems.fleet.trip.vo.TripRequestVO) not yet implemented.");

        /* A typical implementation looks like this:
        com.jrsystems.fleet.trip.TripRequest tripRequest = this.load(tripRequestVO.getId());
        if (tripRequest == null)
        {
            tripRequest = com.jrsystems.fleet.trip.TripRequest.Factory.newInstance();
        }
        return tripRequest;
        */
    }

    
    /**
     * @see com.jrsystems.fleet.trip.TripRequestDao#tripRequestVOToEntity(com.jrsystems.fleet.trip.vo.TripRequestVO)
     */
    public com.jrsystems.fleet.trip.TripRequest tripRequestVOToEntity(com.jrsystems.fleet.trip.vo.TripRequestVO tripRequestVO)
    {
        // @todo verify behavior of tripRequestVOToEntity
        com.jrsystems.fleet.trip.TripRequest entity = this.loadTripRequestFromTripRequestVO(tripRequestVO);
        this.tripRequestVOToEntity(tripRequestVO, entity, true);
        return entity;
    }


    /**
     * @see com.jrsystems.fleet.trip.TripRequestDao#tripRequestVOToEntity(com.jrsystems.fleet.trip.vo.TripRequestVO, com.jrsystems.fleet.trip.TripRequest)
     */
    public void tripRequestVOToEntity(
        com.jrsystems.fleet.trip.vo.TripRequestVO source,
        com.jrsystems.fleet.trip.TripRequest target,
        boolean copyIfNull)
    {
        // @todo verify behavior of tripRequestVOToEntity
        super.tripRequestVOToEntity(source, target, copyIfNull);
    }

}